package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserMembershipCardMapper;
import com.ruoyi.system.domain.UserMembershipCard;
import com.ruoyi.system.service.IUserMembershipCardService;

/**
 * 会员信息Service业务层处理
 * 
 * @author admin
 * @date 2025-01-03
 */
@Service
public class UserMembershipCardServiceImpl implements IUserMembershipCardService 
{
    @Autowired
    private UserMembershipCardMapper userMembershipCardMapper;

    /**
     * 查询会员信息
     * 
     * @param id 会员信息主键
     * @return 会员信息
     */
    @Override
    public UserMembershipCard selectUserMembershipCardById(Long id)
    {
        return userMembershipCardMapper.selectUserMembershipCardById(id);
    }

    /**
     * 查询会员信息列表
     * 
     * @param userMembershipCard 会员信息
     * @return 会员信息
     */
    @Override
    public List<UserMembershipCard> selectUserMembershipCardList(UserMembershipCard userMembershipCard)
    {
        return userMembershipCardMapper.selectUserMembershipCardList(userMembershipCard);
    }

    /**
     * 新增会员信息
     * 
     * @param userMembershipCard 会员信息
     * @return 结果
     */
    @Override
    public int insertUserMembershipCard(UserMembershipCard userMembershipCard)
    {
        return userMembershipCardMapper.insertUserMembershipCard(userMembershipCard);
    }

    /**
     * 修改会员信息
     * 
     * @param userMembershipCard 会员信息
     * @return 结果
     */
    @Override
    public int updateUserMembershipCard(UserMembershipCard userMembershipCard)
    {
        return userMembershipCardMapper.updateUserMembershipCard(userMembershipCard);
    }

    /**
     * 批量删除会员信息
     * 
     * @param ids 需要删除的会员信息主键
     * @return 结果
     */
    @Override
    public int deleteUserMembershipCardByIds(Long[] ids)
    {
        return userMembershipCardMapper.deleteUserMembershipCardByIds(ids);
    }

    /**
     * 删除会员信息信息
     * 
     * @param id 会员信息主键
     * @return 结果
     */
    @Override
    public int deleteUserMembershipCardById(Long id)
    {
        return userMembershipCardMapper.deleteUserMembershipCardById(id);
    }
}
